<%@ page language="java" import="java.util.*" pageEncoding="utf-8" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ include file="taglib.jsp"%>
<html>
<head>
    <%@ include file="head.jsp"%>
    <title>Title</title>
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
    <link href="${ctxStatic}/plugin/layui/css/layui.css" rel="stylesheet" />
</head>
<body>

<form action="FileEncy" method="post">
    源文件：<textarea type="text" name="file"style="width: 500px;height: 30px;font-size: 20px"></textarea><br>
    新文件：<textarea name="newFile" type="text"style="width: 500px;height: 30px;font-size: 20px"></textarea><br>
    密&nbsp;&nbsp;&nbsp; 钥：<textarea type="text" name="key"style="width: 498px;height: 30px;font-size: 20px"></textarea><br>
    加密结果：<textarea name="msgEnc" type="text"style="width: 485px;height: 30px;font-size: 20px" >${msgEnc}</textarea><br>
    <button type="submit" style="margin-left: 200px" class="layui-btn layui-btn-big" >加密文件 </button>
</form>
<textarea name="fileContent" type="text"style="float:right;margin-right: 400px;width: 500px;height: 200px;font-size: 20px">${fileContent}</textarea>
<span style="font-size: 22px;height: 200px;float: right;">返回结果:</span><br>

<form action="FileDecr" method="post">
    <br><br><br><br><br><br><br><br><br><br><br><br><br>
    源文件：<textarea type="text" name="file"style="width: 500px;height: 30px;font-size: 20px"></textarea><br>
    新文件：<textarea name="newFile" type="text"style="width: 500px;height: 30px;font-size: 20px"></textarea><br>
    密&nbsp;&nbsp;&nbsp; 钥：<textarea type="text" name="key"style="width: 498px;height: 30px;font-size: 20px"></textarea><br>
    解密结果：<textarea name="msgDec" type="text"style="width: 485px;height: 30px;font-size: 20px" >${msgDec}</textarea><br>
    <button type="submit"style="margin-left: 200px" class="layui-btn layui-btn-big" >解密文件 </button>
</form>

<script src="${ctxStatic}/plugin/layui/layui.js"></script>
<!-- layui规范化用法 -->
<script type="text/javascript">
    layui.config({
        base: '${ctxStatic}/js/'
    }).use('datalist');
</script>
</body>
</html>
